<!doctype html>
<html>
{include file="head.html"}

<body>
  <div class="fullscreen">
  <div class="scroll_content">
    <div class="topfixed">
      <div class="t_left"><a href="index.php"><i class="back"></i></a></div>
      <div class="t_main">优惠券</div>
      
    </div>
    <div class="paddingheight"></div>
    
    <div class="street_list_wrap">
      <ul class="list">
        {foreach item=c from=$data} 
        <li>
          <p><a href="{if $c.type_id eq 4}/index.php?m=shop&shopid={$c.shopid}{elseif $c.type_id eq 2}/index.php?m=ymdian{elseif $c.type_id eq 3}/index.php?m=koudai{else}/index.php?m=shoplist{/if}"><img src="{$c.imgurl|images_site}" class="img"></a></p>
          <p class="tit">{$c.title}</p>
          <p class="tit"><span class="fl">{if $c.type_id neq 4}{$type_list[$c.type_id]}{else}{$c.shopname}{/if}</span><span class="fr getyhq pointer" did="{$c.id}">领取</span></p>
        </li>
        {/foreach} 
      </ul>
     <div class="clearfix"></div>
      {$pagelist}
    </div>
    
  </div>
</div>
<script>
  
$(function(){
	$(".street_list_wrap .list li:odd").css("margin-left","2%");
	$(document).on("click",".getyhq",function(){
		$.get("/index.php?m=coupon&a=get&ajax=1&id="+$(this).attr("did"),function(data){
			skyToast(data.message);
		},"json");
	});
});

  </script>
 {include file="botnav.html"}
 {include file="footer.html"} 
</body>
</html>
